﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActivityEdit.aspx.cs" Inherits="SBACN.WebSite.Admin.ActivityEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>内容编辑</title>
	<link href="images/style.css" rel="stylesheet" type="text/css" />
	<link href="images/form.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/Scripts/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/xheditor/xheditor-1.1.13-zh-cn.min.js"></script>
	<script type="text/javascript">
		var $jqy = jQuery.noConflict();
		function ImageNewsChecked(sender) {
			if (sender && sender.checked) {
				$jqy("#tr_ImageNews").show();
			}
			else {
				$jqy("#tr_ImageNews").hide();
			}
		}

		$jqy(pageInit);
		function pageInit() {
		}

		function cancel() {
			if (window.opener != null) {
				window.opener = null;
			}
			window.close();
			return false;
		}

		function Check() {
			var tit = $jqy("#<%= txt_Title.ClientID %>").val();
			var date = $jqy("#<%= txt_ActivitiesDate.ClientID %>").val();
			var adr = $jqy("#<%= txt_address.ClientID %>").val();

			if (tit == "") {
				alert("请填写活动标题！");
				return false;
			}

			if (date == "") {
				alert("请填写活动时间！");
				return false;
			}

			return true;
		}

	</script>
</head>
<body>
	<form id="form1" runat="server">
	<center>
		<div id="contentDiv">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-stroke2">
				<tr>
					<td colspan="2" class="form-title2">
						<%= this.Header.Title%>
					</td>
				</tr>
				<tr>
					<td width="16%" class="form-label-1">
						<span style="color: Red">*</span>活动标题:
					</td>
					<td width="84%" class="form-body-1">
						<asp:TextBox TabIndex="0" ID="txt_Title" runat="server" MaxLength="100" Width="97%"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td width="16%" class="form-label-1">
						<span style="color: Red">*</span>活动时间:
					</td>
					<td width="84%" class="form-body-1">
						<asp:TextBox ID="txt_ActivitiesDate" CssClass="Wdate" runat="server" onClick="WdatePicker()"
							MaxLength="20" Width="120px"></asp:TextBox>
					</td>
				</tr>
				<tr style="display:none;">
					<td width="16%" class="form-label-1">
						<span style="color: Red">*</span>活动地址:
					</td>
					<td width="84%" class="form-body-1">
						<asp:TextBox TabIndex="0" ID="txt_address" runat="server" MaxLength="100" Width="97%"></asp:TextBox>
					</td>
				</tr>
				<tr style="display: none;">
					<td width="16%" class="form-label-1">
						内容:
					</td>
					<td width="84%" class="form-body-1">
						<asp:TextBox ID="txt_Content" runat="server" Height="270px" Width="98%" TextMode="MultiLine"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="form-body">
						<asp:Label ID="lbl_Message" Text="&nbsp;" runat="server" ForeColor="Red"></asp:Label>
						<asp:Button ID="btn_Save" CssClass="btnsearch" Text=" 确 定 " runat="server" OnClick="btn_Save_Click"
							OnClientClick="return Check();" />&nbsp;
						<asp:Button ID="btn_Cancel" class="btnsearch" Text=" 关 闭 " runat="server" OnClientClick="return cancel();" />
					</td>
				</tr>
			</table>
		</div>
	</center>
	</form>
</body>
</html>
